function Player() {
    this.level;
    this.friends;
    this.blood;
    Game.rooler;
    Game.posX;
    Game.posY;
    Game.isOver = false;
    this.isControl = false;
    this.bullet;
    this.load();
    this.move();
}
Player.prototype.load = function () {
    Game.rooler = $('<div class="player">');
    Game.container.append(Game.rooler);
    Game.posX = Game.rooler.offset().left - Game.container.offset().left + Game.rooler.width() / 2;
    Game.posY = Game.rooler.offset().top - Game.container.offset().top;
    var loop = function () {
        setTimeout(function () {
            if (!Game.isOver) {
                var bullet = new Bullet();
                loop();
            }
        }, 200)
    }
    loop();
}
Player.prototype.move = function () {
    var self = this;
    Game.container.on('mouseup', function (e) {
        this.isControl = true;
    });
    Game.container.on('mouseleave', function () {
        this.isControl = false;
    });
    Game.container.on('mousemove', function (e) {
        Game.posX = e.pageX - Game.container.offset().left;
        Game.posY = e.pageY - Game.container.offset().top;
        Game.rooler.css({
            'top': Game.posY + 'px',
            'left': Game.posX + 'px'
        });
    })
}